$base-font-size: 16px;
$container-padding: 20px 20px;
$middle-padding: 10px 20px;
$small-padding: 4px 20px;
$contentWidth: 1400px;
$grepBack: #f0f2f5;
$font-size-base: 14px;

$disabled-color: fade(#000, 25%);

@function px2Rem($px) {
  @if (unitless($px)) {
    //有无单位
    @return ($px / 16) * 1rem;
  } @else if (unit($px) == em) {
    @return $px;
  }
  @return ($px / $base-font-size) * 1rem;
}
